package Undefinied;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.gui.AbstractComponent;
import org.newdawn.slick.gui.ComponentListener;
import org.newdawn.slick.loading.DeferredResource;
import org.newdawn.slick.state.StateBasedGame;
  
 /**
  *
  * @author Eric
  *
  */
 public class SlickBasicGame extends StateBasedGame{
	 static int height = 480;
	 static int width = 640;
	 static int count=0;
	 static boolean fullscreen = false;
	 static boolean showFPS = true;
	 static String title = "Metroid Editor";
	 static int fpslimit = 120;
	 static DeferredResource nextResource;
  
     public static final int TESTSTATE  = 0;
     
  
     public SlickBasicGame(){
         super(title);

       /*  this.addState(new GameplayState(GAMEPLAYSTATE));
         this.addState(new MainMenuState(MAINMENUSTATE));
         this.addState(new NewPlayerState(NEWPLAYERSTATE));*/
         this.addState(new TestState(TESTSTATE));
         //this.enterState(NEWPLAYERSTATE);
         //this.enterState(EDITORSTATE);
     }
  
     public static void main(String[] args) throws SlickException{
        AppGameContainer app = new AppGameContainer(new SlickBasicGame());
        app.setClearEachFrame(true);
	
  	    app.setDisplayMode(width, height, fullscreen);
	    app.setSmoothDeltas(true);
	    app.setTargetFrameRate(fpslimit);
	    app.setShowFPS(showFPS);
	    app.start();
     }
  
     @Override
     public void initStatesList(GameContainer gameContainer) throws SlickException {
 
         //this.getState(GAMEPLAYSTATE).init(gameContainer, this);
         //this.getState(EDITORSTATE).init(gameContainer, this);
     }

	
 }